package org.aldar.bquest.entity;

import org.aldar.bquest.resources.ResourceManager;
import org.aldar.bquest.screens.MainBoardScreen;
import org.andengine.entity.sprite.Sprite;

/**
 * User: Daria
 * Date: 6/5/13 8:14 PM
 */
public class ParticleSprite {

    private Sprite sprite;

    public void remove() {
        //    ScreenContentManager.getCometLayer().detachChild(sprite);
    }


    public ParticleSprite(Sprite sprite) {
        this.sprite = sprite;
    }

    public ParticleSprite() {
        this.sprite = new Sprite(0, 0, ResourceManager.getInstance().getParticleRegion(), MainBoardScreen.getScm().getVertexBufferObjectManager());
//        this.sprite = new Sprite(0, 0, ResourceManager.getInstance().getSunRegion(), ScreenContentManager.getVertexBufferObjectManager());
        //ScreenContentManager.getCometLayer().attachChild(sprite);
    }


    public Sprite getSprite() {
        return sprite;
    }

    public void setSprite(Sprite sprite) {
        this.sprite = sprite;
    }

    public void place(float x, float y) {
        this.sprite.setX(x);
        this.sprite.setY(y);
    }

    public void setAlpha(float alpha) {
        this.sprite.setAlpha(alpha);
    }
}
